{{define "product/index.html"}}
    {{template "layout/layout.html" .}}{{end}}

{{define "styles"}}
    <style>
        *{color: red}
    </style>
{{end}}
{{define "content"}}
    <h1>{{.content_text}}</h1>
{{end}}

{{define "scripts"}}
    <script>
        console.log("script继承部分")
    </script>
{{end}}